/*
 * @Date: 2023-08-11 13:08:39
 * @LastEditors: lyx
 * @LastEditTime: 2023-08-11 13:11:28
 * @FilePath: \sup-mini-app\src\components\Post\hooks\usePost.tsx
 * @Description:
 */
import React from "react";
import Taro from "@tarojs/taro";

function UsePost() {
  const handleClick = (id: string) => {
    Taro.navigateTo({
      url: `/pages/post/detail/detail?id=${id}`,
    });
  };
  return {
    handleClick,
  };
}

export default UsePost;
